home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1993…stman Always Clicks Twice / ADC Developer CD (1993-01) (''The Postman Always Clicks Twice'')_iso / Dev.CD 199301.iso / Development Platforms / Apple II / Essentials / Technical.Notes / IIGS / TN.IIGS.108 < prev   
Encoding:
Text File  |  1992-07-15  |  3.0 KB  |  71 lines  |  [TEXT/GEOL]

  1. Apple II
  2. Technical Notes
  3. _____________________________________________________________________________
  4.                                                   Developer Technical Support
  5. Apple IIgs
  6. #108: Finder Funkiness
  7.  
  8. Written by: Dave Lyons                                               May 1992
  9.  
  10. This Technical Note tells you what to watch out for in Finder 6.0.
  11. _____________________________________________________________________________
  12.  
  13.  
  14. ICON SEARCH ORDER
  15.  
  16. When the Finder looks for an icon it uses the first match it finds.  When more
  17. than one icon would match, the order is important.
  18.  
  19. Some icons are built right into the Finder's resource fork--those are always
  20. searched last.  Other than that, the Finder searches in device-number order
  21. (for example, icons on device number $0001, the boot device, override icons on
  22. other devices).
  23.  
  24. On each disk, icons in Desktop files override icons in old-style icon files.
  25. Among old-style icon files in the same Icons folder, each icon file overrides
  26. subsequent (as returned by GetDirEntry)  files in the same directory.  Within
  27. an icons file, earlier icons override later icons.
  28.  
  29. If you create a "generic" icon that matches a broad class of files--for
  30. example, all files of a particular file type--you have to be very careful
  31. where you put that icon.  A generic icon in any file's rBundle will wind up in
  32. a Desktop file, where it will override some old-style icon files (or all of
  33. them, if the Desktop file is on the boot disk).
  34.  
  35. There's really no good place for a custom generic icon.  (Well, the Finder's
  36. resource fork would be a good place, but we recommend not messing with that.)
  37. A halfway-good place is in old-style icons folders, at the end, on the
  38. highest-numbered convenient device (for example, your third hard drive
  39. partition of three).
  40.  
  41. Note that the 6.0 Finder's matching order for old-style icons is more or less
  42. the reverse of what it was in previous versions.
  43.  
  44. FILENAME MATCHING AND WILDCARDS
  45.  
  46. When an icon matches by filename and has a leading wildcard, the match always
  47. fails if there are any lowercase characters in the string.  For example,
  48. "*.TXT" is fine, but "*.Txt" never matches.
  49.  
  50. Also, a leading wildcard matches one or more characters, instead of (as
  51. intended) zero or more characters.  "*ICONS" matches "MyIcons" and
  52. "Other.Icons", but not "Icons".  You can usually work around this by omitting
  53. the character after the wildcards:  "*CONS" matches all three.
  54.  
  55. These notes apply both to old-style icon files and to new matchFilename
  56. structures.
  57.  
  58. SHUT DOWN DEFAULT IS NOT CONFIGURABLE
  59.  
  60. The System 6.0 Finder Documentation shows one of the words in the rRectList(1)
  61. resource as the default choice for the Shut Down dialog.  Actually, the
  62. default is not configurable, and this word in the resource should remain zero.
  63. Utilities can customize the Finder's "Shut Down..." command by accepting the
  64. finderSaysMItemSelected request.
  65.  
  66.  
  67. Further Reference
  68. _____________________________________________________________________________
  69.  
  70.    o   System 6.0 Documentation
  71.